import { request } from "@/utils/service"
// 后台服务管理
export function getServiceList(data: any) {
  return request({
    url: "/bg/service/getList",
    method: "post",
    data
  })
}


// 详情
export function getServiceById(data: any) {
    return request({
      url: "/bg/service/getById",
      method: "post",
      data
    })
}


// 根据id删除
export function deleteServiceById(data: any) {
  return request({
    url: "/bg/service/deleteById",
    method: "post",
    data
  })
}

// 保存或修改
export function saveOrUpdateService(data: any) {
  return request({
    url: "/bg/service/saveOrUpdate",
    method: "post",
    data
  })
}